<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
                            {if !isset($model['user_info'])}
                            <div class="tips am-margin-bottom-sm am-u-sm-12">
		                        <div class="pre-error">
		                            <p>{$model['errmsg']}</p>
		                        </div>
		                    </div>
                            {else /}
							<div class="widget-head am-cf">
                                <div class="widget-title am-fl">配置小程序用户隐私保护指引</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">联系邮箱 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[contact_email]" value="{$model['owner_setting']['contact_email']}" required>
                                </div>
                            </div>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">获取小程序用户隐私权限</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">微信昵称、头像 </label>
                                <div class="am-u-sm-9 am-u-end">
                                	<label class="am-radio-inline">
                                        <input type="radio" {$model['user_info'] == 1 ? 'checked' : ''} disabled> 是
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" {$model['user_info'] == 0 ? 'checked' : ''} disabled> 否
                                    </label>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">位置信息 </label>
                                <div class="am-u-sm-9 am-u-end">
                                	<label class="am-radio-inline">
                                        <input type="radio" {$model['location'] == 1 ? 'checked' : ''} disabled> 是
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" {$model['location'] == 0 ? 'checked' : ''} disabled> 否
                                    </label>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">手机号 </label>
                                <div class="am-u-sm-9 am-u-end">
                                	<label class="am-radio-inline">
                                        <input type="radio" {$model['phone'] == 1 ? 'checked' : ''} disabled> 是
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" {$model['phone'] == 0 ? 'checked' : ''} disabled> 否
                                    </label>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">地址 </label>
                                <div class="am-u-sm-9 am-u-end">
                                	<label class="am-radio-inline">
                                        <input type="radio" {$model['address'] == 1 ? 'checked' : ''} disabled> 是
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" {$model['address'] == 0 ? 'checked' : ''} disabled> 否
                                    </label>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                            {/if}
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {

        $('#my-form').formPost();

    });
</script>
